<div class="m-l nav navbar-nav m-t block" style="width:300px;" >  
   <span>
		<a class="btn btn-xs btn-gray" [routerLink]="['../../']"><i class="fa fa-undo">返回</i></a>
  </span>
  <span>用户管理 ></span>  
  <span *ngIf="parentpage==1">维保用户 ></span> 
  <span *ngIf="parentpage==2">渠道商维保用户 ></span> 
  <span *ngIf="parentpage==3">Admin用户 ></span> 
  <span>维保记录</span>      
</div>
<div class="m-t-lg">
  <div class="wrapper-sm">
	<div class="panel panel-default">
		<div class="panel-body">
			<div style="border-color: #e5e5e5;padding: 10px;background-color: #e5e5e5">
				<div class="row">					
					<div class="col-md-6">
						<div class="input-group">
					      <input type="text" class="form-control" placeholder="手机号...">
					      <span class="input-group-btn">
					        <button class="btn btn-default" type="button">查询</button>
					      </span>
					    </div>
					</div> 
					<!-- <div class="col-md-6" style="text-align: right">
						<button class="btn btn-info pull-right" (click)="btype=1; myModal.show()">
							新增
						</button>
					</div>			 -->
				</div>
			</div>
			<div class="table-responsive">
			<table class="table table-hover table-striped">
				<thead>
					<tr>
						
	   					<th>工单编号</th>	
	   					<th>生成时间</th>	   					
	   					<th>创建人</th>
	   					<th>设备编号</th>
	   					<th>维保人员</th>	   					
	   					<th>维保内容</th>	   					
	   					<th>操作</th>
	   					
					</tr>
				</thead>
				<tbody>
					<tr>						
	   					<td>5435345</td>
	   					<td>2017/6/17</td>
	   					<td>12324355678</td>
	   					<td>123</td>
	   					<td>普陀区</td>
	   					<td>
	   						<span *ngIf="btype!=1">fsdfafasdf</span>
	   						<!-- <span *ngIf="btype==3">fsdfafasdf</span> -->
	   						<span *ngIf="btype==1">
	   							<textarea class="form-control" rows="3"></textarea>
	   						</span>
	   					</td>
	   								
	   					<td>
	   						<button class="btn btn-xs btn-info" (click)="btype=1;" *ngIf="btype!=1">编辑</button>
	   						<!-- //<button class="btn btn-xs btn-info" *ngIf="btype==3">编辑</button> -->
	   						<button class="btn btn-xs btn-success" (click)="btype=2;" *ngIf="btype==1">保存</button>
	   						<button class="btn btn-xs " (click)="btype=3;" *ngIf="btype==1">取消</button>
	   					</td>
					</tr>
				</tbody>
			</table>
			</div>
			<app-pagination [pageModel]="pageModel" (pageChanged)="getAll($event)"></app-pagination>
		</div>
	</div>
  </div>
</div>
